package com.easygo.client;

import com.easygo.common.PageUtils;
import com.easygo.pojo.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("easygo-search-service")
public interface GoodsClient {

    @RequestMapping("/search/{pageIndex}/{pageSize}")
    public PageUtils<Goods> search(@RequestParam("keywords") String keywords, @PathVariable("pageIndex") Integer pageIndex, @PathVariable("pageSize") Integer pageSize);

}
